package com.lipi.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lipi.common.utils.PageUtils;
import com.lipi.mall.product.entity.SpuInfoEntity;
import com.lipi.mall.product.vo.SpuSaveVO;

import java.util.Map;

/**
 * spu信息
 *
 * @author hecy
 * @email kuanih200@163.com
 * @date 2021-06-14 16:02:24
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVO vo);

    PageUtils queryPageBucondition(Map<String, Object> params);

    /**
     * 商品上架
     * @param spuId
     */
    void up(Long spuId);


    /**
     * 传入skuId,返回其所属的spuInfo
     * @param id
     * @return
     */
    SpuInfoEntity getSpuInfoBySkuId(String id);
}

